package com.rk.sample;

import com.rk.dao.CustomerDao;
import com.rk.dao.DaoFactory;
import com.rk.entity.Customer;

import java.io.IOException;

public class DeleteCustomerById {
    public static void main(String[] args) throws IOException {
        Customer customer=new Customer();
        customer.setId(1);
        CustomerDao dao= DaoFactory.getCustomerDao();
        dao.deleteByID(customer);
        System.out.println("--Delete By ID--");
    }
}
